export const regPhone=(phone)=>{
    const regPhone=/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/g
    return regPhone.test(phone.value)
}

export const regPsd=(psd)=>{
    const regPsd=/^[a-zA-Z]\w{5,17}$/g
    return regPsd.test(psd.value)
}

export const regName=(name)=>{
    const regName=/^[a-zA-Z][a-zA-Z0-9_]{4,15}$/g
    return regName.test(name.value)
}